package com.mengmeng.demo.mapper;

import com.mengmeng.demo.user.token;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TokenMapper {

    @Select("select * from sso_token")
    List<token> getAllto();
    @Delete ("delete from sso_token where token=#{token}")
    boolean deleteBytoken(Integer token);

    boolean updateto(token to);

    boolean insertto(token to);


    List<token> getBytoken(int token);

}
